package com.zzl.finance.data.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zzl.apidoc.annotation.ApidocModel;
import com.zzl.apidoc.annotation.ApidocModelProperty;
import lombok.Data;

/**
 * 产品编码
 *
 * @author gull
 * @date 2022-07-01 18:23:11
 */
@Data
@TableName("b_financial_product")
@ApidocModel
@SuppressWarnings("javadoc")
public class FinancialProductEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.UUID)
    @ApidocModelProperty(description = "主键")
    private String id;
    @ApidocModelProperty(description = "金融机构id")
    private String institutyId;
    @ApidocModelProperty(description = "产品名称")
    private String productName;
    @ApidocModelProperty(description = "到账周期，为到账的天数值")
    private Integer receiptPeriod;
    @ApidocModelProperty(description = "产品编号")
    private String productCode;
    @ApidocModelProperty(description = "产品状态 0 失效 1 生效")
    private Integer productStatus;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApidocModelProperty(description = "创建时间", validate = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApidocModelProperty(description = "修改时间", validate = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    @ApidocModelProperty(description = "创建人")
    private Integer creatorId;
    @ApidocModelProperty(description = "修改人")
    private Integer updaterId;
    @ApidocModelProperty(description = "备注")
    private String remark;
    @ApidocModelProperty(description = "排序字段")
    private Integer sort;
    @ApidocModelProperty(description = "1 表示删除，0 表示未删除")
    @TableField(value = "is_deleted")
    @TableLogic(value = "0", delval = "1")
    private Integer deletedStatus;
    @ApidocModelProperty(description = "企业id")
    private String enterpriseId;
    @ApidocModelProperty(description = "企业名称")
    private String enterpriseName;
    @ApidocModelProperty(description = "企业类型，0：核心企业 1：供应商，2：集团 3：平台")
    private String enterpriseType;

}
